import { apiClient } from './index.js'

export default {
  login(credentials) {
    return apiClient.post('/auth/signin', credentials)
  },
  signup(data) {
    return apiClient.post('/auth/signup', data)
  },
  logout() {
    return apiClient.post('/auth/logout')
  },
  refreshToken(refreshToken) {
    return apiClient.post('/auth/refresh-token', { refreshToken })
  },
  resetPassword(data) {
    return apiClient.post('/auth/reset-password', data)
  }
}
